home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java Primer Plus
/
Java Primer Plus (Waite Group Proess)(1996).iso
/
chapter10
/
testrun.java
< prev
next >
Wrap
Text File
|
1995-12-31
|
357b
|
20 lines
/* This class is out to cause trouble */
class testrun {
static int a[];
static public void main (String args[]) {
allocer();
System.gc();
System.out.println(a[1]);
}
/* method to create an array then die */
static void allocer() {
int x[] = new int[10];
x[1] = 5;
a = x;
}
}